-- GENERATED SPELL FOR [Detonating Lasher] --


function spell0_32918(pUnit, Event) --@Detonate,Self--
pUnit:FullCastSpellOnTarget(62598,pUnit)
pUnit:RegisterEvent('Sorts_32918', 608, 1)
end

function spell1_32918(pUnit, Event) --@Detonate,Self--
pUnit:FullCastSpellOnTarget(62937,pUnit)
pUnit:RegisterEvent('Sorts_32918', 536, 1)
end

function spell2_32918(pUnit, Event) --@Flame Lash,n/a--
pUnit:FullCastSpellOnTarget(62608,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32918', 661, 1)
end

function Sorts_32918(pUnit, Event)
local choix_sorts_32918 = math.random(0, 2)
if choix_sorts_32918 == 0 then
pUnit:RegisterEvent('spell0_32918', 1, 1)
end
if choix_sorts_32918 == 1 then
pUnit:RegisterEvent('spell1_32918', 1, 1)
end
if choix_sorts_32918 == 2 then
pUnit:RegisterEvent('spell2_32918', 1, 1)
end
end

function mob32918_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_32918', math.random(1500, 3000), 1)
end

function mob32918_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32918_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32918_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(32918, 1, 'mob32918_Action')
RegisterUnitEvent(32918, 2, 'mob32918_Leave')
RegisterUnitEvent(32918, 3, 'mob32918_Kill')
RegisterUnitEvent(32918, 4, 'mob32918_Die')
